home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: strings
- Date: 28 Jan 1996 17:43:05 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Jan28104305@qcd.lanl.gov>
- References: <4eg9qj$1ut4@sp115.ocs.lsu.edu>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: eenaya@unix1.sncc.lsu.edu's message of 28 Jan 1996 16:55:47 GMT
-
- In article <4eg9qj$1ut4@sp115.ocs.lsu.edu> eenaya@unix1.sncc.lsu.edu
- (Pradeep Nayar) writes:
- <snip>
- I saw this piece of code in a book somewhere.
-
- Throw away the book: immediately.
-
- ----
- char *str ;
-
- str = "hello world"[10] ;
-
- _________
-
- what does the second line do?
-
- Nothing meaningful. In fact, the compiler must tell you that this is
- incorrect: otherwise put your compiler exactly in the same place where
- your book deserves to go :-)
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-